package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 金华教育同步
 *
 * @author wangtao
 * @since 2023-03-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_jhjy_sync")
@Schema(name = "EduJhjySync", title = "金华教育同步", description = "金华教育同步实体类")
public class EduJhjySync extends Model<EduJhjySync> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "jhjyId", title = "金华教育同步id")
    @TableId(value = "jhjy_id", type = IdType.ASSIGN_ID)
    private String jhjyId;

    @Schema(name = "name", title = "姓名")
    @TableField(value = "name")
    private String name;

    @Schema(name = "sex", title = "性别")
    @TableField(value = "sex")
    private Integer sex;

    @Schema(name = "idcard", title = "证件号码")
    @TableField(value = "idcard")
    private String idcard;

    @Schema(name = "tel", title = "电话")
    @TableField(value = "tel")
    private String tel;

    @Schema(name = "eduStage", title = "学段12  幼儿园13  小学14  初中	")
    @TableField(value = "edu_stage")
    private Integer eduStage;

    @Schema(name = "schoolType", title = "学校类型：31 公办32 民办")
    @TableField(value = "school_type")
    private Integer schoolType;

    @Schema(name = "schoolName", title = "学校名称")
    @TableField(value = "school_name")
    private String schoolName;

    @Schema(name = "submitTime", title = "家长提交时间")
    @TableField(value = "submit_time")
    private String submitTime;

    @Schema(name = "year", title = "年份")
    @TableField(value = "year")
    private Integer year;

    @Schema(name = "studentEnrollId", title = "报名id")
    @TableField(value = "student_enroll_id")
    private String studentEnrollId;

    @Schema(name = "deleteFlag", title = "是否删除")
    @TableField(value = "delete_flag")
    private String deleteFlag;

    @Schema(name = "deleteReason", title = "删除理由")
    @TableField(value = "delete_reason")
    private String deleteReason;

    @Schema(name = "lqFlag", title = "是否录取")
    @TableField(value = "lq_flag")
    private String lqFlag;

    @Schema(name = "qxlqFlag", title = "是否取消录取")
    @TableField(value = "qxlq_flag")
    private String qxlqFlag;

    @Schema(name = "bmSyncFlag", title = "报名同步状态 0 未同步 1 同步成功 2同步失败")
    @TableField(value = "bm_sync_flag")
    private String bmSyncFlag;

    @Schema(name = "bmSyncRemark", title = "报名同步备注")
    @TableField(value = "bm_sync_remark")
    private String bmSyncRemark;

    @Schema(name = "deleteSyncFlag", title = "删除同步状态 0 未同步 1 同步成功 2同步失败")
    @TableField(value = "delete_sync_flag")
    private String deleteSyncFlag;

    @Schema(name = "deleteSyncRemark", title = "删除同步备注")
    @TableField(value = "delete_sync_remark")
    private String deleteSyncRemark;

    @Schema(name = "lqSyncFlag", title = "录取同步状态 0 未同步 1 同步成功 2同步失败")
    @TableField(value = "lq_sync_flag")
    private String lqSyncFlag;

    @Schema(name = "lqSyncRemark", title = "录取同步备注")
    @TableField(value = "lq_sync_remark")
    private String lqSyncRemark;

    @Schema(name = "qxlqSyncFlag", title = "取消录取同步状态 0 未同步 1 同步成功 2同步失败")
    @TableField(value = "qxlq_sync_flag")
    private String qxlqSyncFlag;

    @Schema(name = "qxlqSyncRemark", title = "取消录取同步备注")
    @TableField(value = "qxlq_sync_remark")
    private String qxlqSyncRemark;

    @Schema(name = "del", title = "0,未删除,1,已删除")
    @TableField(value = "del", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    @TableLogic
    private String del;

    @Schema(name = "createName", title = "创建人")
    @TableField(value = "create_name", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private String createName;

    @Schema(name = "createTime", title = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private Date createTime;

    @Schema(name = "updateName", title = "修改人")
    @TableField(value = "update_name", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private String updateName;

    @Schema(name = "updateTime", title = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private Date updateTime;

    @Schema(name = "areaCode", title = "行政区划")
    @TableField(value = "area_code")
    private String areaCode;

    @Override
    public Serializable pkVal() {
        return this.jhjyId;
    }
}
